const BaseConfig = require('./base.config')
const { merge } = require('webpack-merge')
const path = require('path')

console.log('dev')

/**@type {import('webpack').Configuration} */

const config = {
  mode: 'development',
  target: 'web',
  watch: true,
  devtool: 'inline-source-map',
  devServer: {
    static: path.join(__dirname, '../dist'),
    compress: true,
    allowedHosts: 'auto',
    port: 9000
  }
}

module.exports = merge(BaseConfig, config)
